package com.hdjk.view.entity;

import android.text.TextUtils;

import com.lst.projectlib.entity.BaseEntity;

import java.util.List;

/**
 * Created by Administrator on 2017/11/6.
 */

public class FinancialEntity extends BaseEntity {
    //累计净值，精确到4位小数，如1.0001
    private String accumulateNav;
    //(固收类产品)业绩比较基准
    private String annualPerformanceBenchMark;
    //是否支持预约购买
    private String appointmentBuyEnable;
    //预约购买结束日期
    private String appointmentEndDate;
    //是否支持预约赎回
    private String appointmentSellEnable;
    //预约购买开始日期
    private String appointmentStartDate;
    //申购开放结束日期
    private String buyEndDate;
    //申购开放开始日期
    private String buyStartDate;
    //封闭结束日期
    private String closeEndDate;
    //封闭开始日期
    private String closeStartDate;
    //币种,目前仅支持人民币购买,固定值=156
    private String currency;
    //托管费率,单位1%,精确到2位小数,如0.35,即0.35%
    private String custodianFee;
    //浮收类产品的最新万份收益。精确到4位小数
    private String earningsPer10000;
    //产品托管银行
    private String fundCustodian;
    //基金公司名称
    private String fundHouse;
    //基金公司代码
    private String fundHouseCode;
    //基金经理列表
    private List<FundManagerEntity> fundManagers;
    //产品最新规模,单位为亿
    private String fundSize;
    //产品规模更新日期
    private String fundSizeDate;
    //运作历史
    private List<History> history;
    //投资目标
    private String investmentObjective;
    //投资范围
    private String investmentScope;
    //投资策略
    private String investmentStrategy;
    //募集期产品结束募集日期
    private String ipoEndDate;
    //募集期产品开始募集日期
    private String ipoStartDate;
    //是否可购买
    private String isBuyEnable;
    //是否可定投
    private String isRspEnable;
    //是否可赎回
    private String isSellEnable;
    //是否可转换
    private String isSwitchEnable;
    //产品成立日期
    private String launchDate;
    //产品发行价格
    private String launchPrice;
    //产品发行规模,单位为亿
    private String launchSize;
    //管理费率,单位1%,精确到2位小数,如0.35,即0.35%
    private String managementFee;
    //最高申购金额
    private String maxBuyAmount;
    //最高认购金额
    private String maxIpoAmount;
    //最高赎回份额
    private String maxRedemptionUnit;
    //最低申购金额
    private String minInitialBuyAmount;
    //最低认购金额
    private String minInitialIpoAmount;
    //最低赎回份额
    private String minRedemptionUnit;
    //最低持有份额
    private String minRetainUnit;
    //追加购买最低金额
    private String minSubseqBuyAmoun;
    //认购追加购买最低金额
    private String minSubseqIpoAmount;
    //最新净值，精确到4位小数，如1.0001
    private String nav;
    //最新净值日期
    private String navDate;
    //投资期限
    private String operationPeriodLength;
    //产品代码
    private String productCode;
    //收益模式
    private String revenueMode;
    //产品的风险收益特征
    private String riskDisclosure;
    //产品的风险等级
    private String riskRate;
    //赎回开放结束日期
    private String sellEndDate;
    //产品到期处理方式
    private SellMode sellMode;
    //赎回开放开始日期
    private String sellStartDate;
    //浮收类产品的七日年化收益。单位为1%
    private String sevenDaysAnnualizedYield;
    //产品状态
    private String status;
    //产品名称（全称）
    private String subProductName;
    //产品简称
    private String subShortName;

    public void setAccumulateNav(String accumulateNav) {
        this.accumulateNav = accumulateNav;
    }

    public String getAccumulateNav() {
        return this.accumulateNav;
    }

    public void setAnnualPerformanceBenchMark(String annualPerformanceBenchMark) {
        this.annualPerformanceBenchMark = annualPerformanceBenchMark;
    }

    public String getAnnualPerformanceBenchMark() {
        return this.annualPerformanceBenchMark;
    }

    public void setAppointmentBuyEnable(String appointmentBuyEnable) {
        this.appointmentBuyEnable = appointmentBuyEnable;
    }

    public String getAppointmentBuyEnable() {
        return this.appointmentBuyEnable;
    }

    public void setAppointmentEndDate(String appointmentEndDate) {
        this.appointmentEndDate = appointmentEndDate;
    }

    public String getAppointmentEndDate() {
        return this.appointmentEndDate;
    }

    public void setAppointmentSellEnable(String appointmentSellEnable) {
        this.appointmentSellEnable = appointmentSellEnable;
    }

    public String getAppointmentSellEnable() {
        return this.appointmentSellEnable;
    }

    public void setAppointmentStartDate(String appointmentStartDate) {
        this.appointmentStartDate = appointmentStartDate;
    }

    public String getAppointmentStartDate() {
        return this.appointmentStartDate;
    }

    public void setBuyEndDate(String buyEndDate) {
        this.buyEndDate = buyEndDate;
    }

    public String getBuyEndDate() {
        return this.buyEndDate;
    }

    public void setBuyStartDate(String buyStartDate) {
        this.buyStartDate = buyStartDate;
    }

    public String getBuyStartDate() {
        return this.buyStartDate;
    }

    public void setCloseEndDate(String closeEndDate) {
        this.closeEndDate = closeEndDate;
    }

    public String getCloseEndDate() {
        return this.closeEndDate;
    }

    public void setCloseStartDate(String closeStartDate) {
        this.closeStartDate = closeStartDate;
    }

    public String getCloseStartDate() {
        return this.closeStartDate;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public String getCurrency() {
        return this.currency;
    }

    public void setCustodianFee(String custodianFee) {
        this.custodianFee = custodianFee;
    }

    public String getCustodianFee() {
        return this.custodianFee;
    }

    public void setEarningsPer10000(String earningsPer10000) {
        this.earningsPer10000 = earningsPer10000;
    }

    public String getEarningsPer10000() {
        return this.earningsPer10000;
    }

    public void setFundCustodian(String fundCustodian) {
        this.fundCustodian = fundCustodian;
    }

    public String getFundCustodian() {
        return this.fundCustodian;
    }

    public void setFundHouse(String fundHouse) {
        this.fundHouse = fundHouse;
    }

    public String getFundHouse() {
        return this.fundHouse;
    }

    public void setFundHouseCode(String fundHouseCode) {
        this.fundHouseCode = fundHouseCode;
    }

    public String getFundHouseCode() {
        return this.fundHouseCode;
    }

    public void setFundManagers(List<FundManagerEntity> fundManagers) {
        this.fundManagers = fundManagers;
    }

    public List<FundManagerEntity> getFundManagers() {
        return this.fundManagers;
    }

    public void setFundSize(String fundSize) {
        this.fundSize = fundSize;
    }

    public String getFundSize() {
        return this.fundSize;
    }

    public void setFundSizeDate(String fundSizeDate) {
        this.fundSizeDate = fundSizeDate;
    }

    public String getFundSizeDate() {
        return this.fundSizeDate;
    }

    public void setHistory(List<History> history) {
        this.history = history;
    }

    public List<History> getHistory() {
        return this.history;
    }

    public void setInvestmentObjective(String investmentObjective) {
        this.investmentObjective = investmentObjective;
    }

    public String getInvestmentObjective() {
        return this.investmentObjective;
    }

    public void setInvestmentScope(String investmentScope) {
        this.investmentScope = investmentScope;
    }

    public String getInvestmentScope() {
        return this.investmentScope;
    }

    public void setInvestmentStrategy(String investmentStrategy) {
        this.investmentStrategy = investmentStrategy;
    }

    public String getInvestmentStrategy() {
        return this.investmentStrategy;
    }

    public void setIpoEndDate(String ipoEndDate) {
        this.ipoEndDate = ipoEndDate;
    }

    public String getIpoEndDate() {
        return this.ipoEndDate;
    }

    public void setIpoStartDate(String ipoStartDate) {
        this.ipoStartDate = ipoStartDate;
    }

    public String getIpoStartDate() {
        return this.ipoStartDate;
    }

    public void setIsBuyEnable(String isBuyEnable) {
        this.isBuyEnable = isBuyEnable;
    }

    public String getIsBuyEnable() {
        return this.isBuyEnable;
    }

    public void setIsRspEnable(String isRspEnable) {
        this.isRspEnable = isRspEnable;
    }

    public String getIsRspEnable() {
        return this.isRspEnable;
    }

    public void setIsSellEnable(String isSellEnable) {
        this.isSellEnable = isSellEnable;
    }

    public String getIsSellEnable() {
        return this.isSellEnable;
    }

    public void setIsSwitchEnable(String isSwitchEnable) {
        this.isSwitchEnable = isSwitchEnable;
    }

    public String getIsSwitchEnable() {
        return this.isSwitchEnable;
    }

    public void setLaunchDate(String launchDate) {
        this.launchDate = launchDate;
    }

    public String getLaunchDate() {
        return this.launchDate;
    }

    public void setLaunchPrice(String launchPrice) {
        this.launchPrice = launchPrice;
    }

    public String getLaunchPrice() {
        return this.launchPrice;
    }

    public void setLaunchSize(String launchSize) {
        this.launchSize = launchSize;
    }

    public String getLaunchSize() {
        return this.launchSize;
    }

    public void setManagementFee(String managementFee) {
        this.managementFee = managementFee;
    }

    public String getManagementFee() {
        return this.managementFee;
    }

    public void setMaxBuyAmount(String maxBuyAmount) {
        this.maxBuyAmount = maxBuyAmount;
    }

    public String getMaxBuyAmount() {
        return this.maxBuyAmount;
    }

    public void setMaxIpoAmount(String maxIpoAmount) {
        this.maxIpoAmount = maxIpoAmount;
    }

    public String getMaxIpoAmount() {
        return this.maxIpoAmount;
    }

    public void setMaxRedemptionUnit(String maxRedemptionUnit) {
        this.maxRedemptionUnit = maxRedemptionUnit;
    }

    public String getMaxRedemptionUnit() {
        return this.maxRedemptionUnit;
    }

    public void setMinInitialBuyAmount(String minInitialBuyAmount) {
        this.minInitialBuyAmount = minInitialBuyAmount;
    }

    public String getMinInitialBuyAmount() {
        return this.minInitialBuyAmount;
    }

    public void setMinInitialIpoAmount(String minInitialIpoAmount) {
        this.minInitialIpoAmount = minInitialIpoAmount;
    }

    public String getMinInitialIpoAmount() {
        return this.minInitialIpoAmount;
    }

    public void setMinRedemptionUnit(String minRedemptionUnit) {
        this.minRedemptionUnit = minRedemptionUnit;
    }

    public String getMinRedemptionUnit() {
        return this.minRedemptionUnit;
    }

    public void setMinRetainUnit(String minRetainUnit) {
        this.minRetainUnit = minRetainUnit;
    }

    public String getMinRetainUnit() {
        return this.minRetainUnit;
    }

    public void setMinSubseqBuyAmoun(String minSubseqBuyAmoun) {
        this.minSubseqBuyAmoun = minSubseqBuyAmoun;
    }

    public String getMinSubseqBuyAmoun() {
        return this.minSubseqBuyAmoun;
    }

    public void setMinSubseqIpoAmount(String minSubseqIpoAmount) {
        this.minSubseqIpoAmount = minSubseqIpoAmount;
    }

    public String getMinSubseqIpoAmount() {
        return this.minSubseqIpoAmount;
    }

    public void setNav(String nav) {
        this.nav = nav;
    }

    public String getNav() {
        return this.nav;
    }

    public void setNavDate(String navDate) {
        this.navDate = navDate;
    }

    public String getNavDate() {
        return this.navDate;
    }

    public void setOperationPeriodLength(String operationPeriodLength) {
        this.operationPeriodLength = operationPeriodLength;
    }

    public String getOperationPeriodLength() {
        return this.operationPeriodLength;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductCode() {
        return this.productCode;
    }

    public void setRevenueMode(String revenueMode) {
        this.revenueMode = revenueMode;
    }

    public String getRevenueMode() {
        String rev="";
        if (!TextUtils.isEmpty(revenueMode)) {
            if ("fixed".equals(revenueMode)) {
                rev = "固定收益";
            }
            if ("float".equals(revenueMode)) {
                rev = "浮动收益";
            }
        }
        return rev;
    }

    public void setRiskDisclosure(String riskDisclosure) {
        this.riskDisclosure = riskDisclosure;
    }

    public String getRiskDisclosure() {
        return this.riskDisclosure;
    }

    public void setRiskRate(String riskRate) {
        this.riskRate = riskRate;
    }

    public String getRiskRate() {
        return this.riskRate;
    }
    public String getRiskRateName() {
        String risk = "";
        if (!TextUtils.isEmpty(riskRate)) {
            if ("1".equals(riskRate))
                risk = "低风险";
            if ("2".equals(riskRate))
                risk = "中低风险";
            if ("3".equals(riskRate))
                risk = "中风险";
            if ("4".equals(riskRate))
                risk = "中高风险";
            if ("5".equals(riskRate))
                risk = "高风险";
        }
        return risk;
    }
    public void setSellEndDate(String sellEndDate) {
        this.sellEndDate = sellEndDate;
    }

    public String getSellEndDate() {
        return this.sellEndDate;
    }

    public void setSellMode(SellMode sellMode) {
        this.sellMode = sellMode;
    }

    public SellMode getSellMode() {
        return this.sellMode;
    }

    public void setSellStartDate(String sellStartDate) {
        this.sellStartDate = sellStartDate;
    }

    public String getSellStartDate() {
        return this.sellStartDate;
    }

    public void setSevenDaysAnnualizedYield(String sevenDaysAnnualizedYield) {
        this.sevenDaysAnnualizedYield = sevenDaysAnnualizedYield;
    }

    public String getSevenDaysAnnualizedYield() {
        return this.sevenDaysAnnualizedYield;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return this.status;
    }

    public void setSubProductName(String subProductName) {
        this.subProductName = subProductName;
    }

    public String getSubProductName() {
        return this.subProductName;
    }

    public void setSubShortName(String subShortName) {
        this.subShortName = subShortName;
    }

    public String getSubShortName() {
        return this.subShortName;
    }
}
